package com.myd.util;

import java.util.*;

public  abstract  class Main{

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int i = 0;
        System.out.println();
        while(sc.hasNext()){
            String a = sc.nextLine();
            String b = sc.nextLine();
            System.out.println(helper(a,b));
        }
    }

    public static String helper(String a,String b){
        StringBuilder str=new StringBuilder();
        char j = '0';
        int i = a.length()-1;
        int x = b.length()-1;
        for(;i>=0 || x>=0;i--,x--){
            if(i<0){
                if(j=='1' && b.charAt(x)=='1'){
                    str.append('0');
                    j ='1';
                }else{
                    str.append(b.charAt(x));
                    j = '0';
                }
                continue;
            }
            if(x<0){
                if(j=='1' && a.charAt(i)=='1'){
                    str.append('0');
                    j ='1';
                }else{
                    str.append(a.charAt(i));
                    j = '0';
                }
                continue;
            }
            if(a.charAt(i) == b.charAt(x)){
                if(a.charAt(i) != '0'){
                    if(j=='1') {
                        str.append('1');
                    }else{
                        str.append('0');
                    }
                    j = '1';
                }else{
                    if(j=='1') {
                        str.append('1');
                        j = '0';
                    }else{
                        str.append('0');
                    }
                }
            }else{
                if(j=='0'){
                    str.append('1');
                }else{
                    str.append('0');
                    j = '1';
                }
            }
        }
        if(j == '1')
            str.append('1');
        if(i>0){

        }
        str.reverse();
        return str.toString();
    }
}
 class ListParamTest {
     public static void resetList(List<Integer> dataList) {
         dataList.subList(2, 4).set(0, 40);
         dataList = new ArrayList<Integer>(dataList);
         dataList.add(50);
     }

     public static void setOne(List<Integer> dataList) {
         dataList.set(3, 100);
     }

     public static void main(String[] args) {
         List<Integer> dataList = new ArrayList<Integer>(Arrays.asList(10, 20, 30, null));
         resetList(dataList);
         setOne(dataList);
         int sum = 0;
         for (Integer v : dataList) {
             sum += v;
         }
         System.out.println(sum);
     }
 }



 class Maiqwen {
    private static Map<Character,Integer> map = new HashMap<>();
    private static Set<Character> map2 = new HashSet<>();
    private static Map<Character,Character> map3 = new HashMap<>();
    static {
        map.put('(',0);
        map2.add(')');
        map.put('{',0);
        map2.add('}');
        map.put('[',0);
        map2.add(']');
        map3.put(')','(');
        map3.put('}','{');
        map3.put(']','[');
    }
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {// 注意，如果输入是多个测试用例，请通过while循环处理多个测试用例
           String str = in.nextLine();
            System.out.println(helper(str));
        }
    }

     private static boolean helper(String str) {

        if(str.equals("") || str.length() == 0)
            return false;
//         Stack<Character> stack = new Stack<>();
         for (int i = 0; i < str.length(); i++) {
             char c = str.charAt(i);
             if(map.containsKey(c)){
                 map.put(c,map.get(c)+1);
             }else if(map2.contains(c)){
                 int cnt = map.get(map3.get(c));
                 if(cnt==0)
                     return false;
                 map.put(map3.get(c),--cnt);
             }
         }
         for(Map.Entry<Character,Integer> entry : map.entrySet()){
             if(entry.getValue()!=0)
                 return false;
         }
         return true;
     }
 }

class A implements Cloneable {
    private String name;
    private Integer age;
    private B b;

    public A(String str, Integer a) {
        this.name = str;
        this.age = a;
    }

    public void setB(B b) {
        this.b = b;
    }

    @Override
    public String toString() {
        return "A{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", b=" + b +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public A deepClone() throws CloneNotSupportedException {
        A clone = (A) super.clone();
        B b = new B(clone.b.getName(), clone.b.getSex());
        clone.setB(b);
        return clone;
    }

    public static void main(String[] args) throws CloneNotSupportedException {
        A a = new A("han", 12);
        B b = new B("zhangsan", "nan");
        a.setB(b);
        A aa = (A) a.clone();
        System.out.println("a 的 Integer age 对比 ：" + (a.age == aa.age));

        System.out.println(a == aa);
        System.out.println(a + "\n" + aa);
        a.setName("kun");
        b.setName("lisi");
        System.out.println(a + "\n" + aa);
        System.out.println(a.b == aa.b);


        A a2 = a.deepClone();
        System.out.println(a2 == a);

        a.b.setName("hankun");
        System.out.println(a.b == a2.b);
        System.out.println(a + "\n" + a2);


//       c();
    }

    private void setName(String kun) {
        this.name = kun;
    }
//    public static boolean c(){
//        List<String> list = Arrays.asList("123","123","456","123");
//        list.stream().filter("123"::equals)
//                .filter(System.out::println);
//        return false;
//    }

}

class B implements Cloneable {
    private String name;
    private String sex;

    public B(String name, String sex) {
        this.name = name;
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "B{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
 class C extends Thread implements Runnable{
    @Override
    public void run() {
        super.run();
    }
}
static int[] arr = new int[5];
    public static void main(String[] args) {
//        Thread t = new Thread(new C());
        System.out.println(arr[0]);
//        String str = "D:\dsss\sds";
//
        System.out.println(" \\ ");
    }

}

